package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type Role struct {
	gorm.Model
	RoleName    string `gorm:"type:varchar(50)"`
	RoleComment string `gorm:"type:varchar(50)"`
}

type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeType string `gorm:"type:varchar(50)"`
	NodeName string `gorm:"type:varchar(50)"`
}
type Good struct {
	gorm.Model
	GoodTitle  string `gorm:"type:varchar(50)"`
	GoodStatus string `gorm:"type:varchar(50)"`
	GoodPrice  string `gorm:"type:varchar(50)"`
	GoodNum    string `gorm:"type:varchar(50)"`
}
type GoodOrder struct {
	gorm.Model
	Gid         int    `gorm:"type:int"`
	OrderCode   string `gorm:"type:varchar(50)"`
	UserComment string `gorm:"type:varchar(50)"`
	OrderGood   string `gorm:"type:varchar(50)"`
	OrderPrice  string `gorm:"type:varchar(50)"`
	ZfType      string `gorm:"type:varchar(50)"`
}

type GoodOrderList struct {
	Gid         int
	OrderCode   string
	UserComment string
	OrderGood   string
	OrderPrice  string
	ZfType      string
	GoodTitle   string
	GoodStatus  string
	GoodPrice   string
	GoodNum     string
}
